package com.wyz.saas.app.net

import com.wyz.saas.app.net.card.AccountCard
import com.wyz.saas.app.net.param.LoginParam
import retrofit2.Call
import retrofit2.http.*

interface ApiService {

    @GET("toutiao/index")
    suspend fun getNews(
        @Query("type") type : String ="top",
        @Query("page") page : Int = 1,
        @Query("page_size") page_size : Int = 30,
        @Query("is_filter")is_filter : Int = 0,
        @Query("key") key: String = "ab5c45593fc27ea0585ba6e48476c7c5"): BaseResponse<NewsCard>


    @POST("account/login")
    suspend  fun accountLogin(@Body param: LoginParam): BaseResponse<AccountCard>
}